package sumoTween.easing;

public class Quad extends Linear implements EasingIF{

	public float easeIn (float t, float b, float c, float d)
	{
		return c*(t/=d)*t + b;
	}
	public float easeOut(float t, float b, float c, float d)
	{
		return -c *(t/=d)*(t-2) + b;
	}
	public float easeInOut (float t, float b, float c, float d)
	{
		if ((t/=d*0.5f) < 1) return c*0.5f*t*t + b;
		return -c*0.5f * ((--t)*(t-2) - 1) + b;
	}
	
}
